<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>zan-admin后台管理系统模板</title>
    <link rel="icon" href="favicon.ico" type="image/ico">
    <script src="static/js/checkie&edge.js"></script>
    <link href="static/css/bootstrap.min.css" rel="stylesheet">
    <link href="static/css/zan-admin.min.css" rel="stylesheet">
    <!-- 插件 -->
    <link rel="stylesheet" href="lib/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css" />
</head>

<body>
    <header class="zan-header">
        <span class="glyphicon glyphicon-menu-hamburger zan-sidebar-toggle" aria-hidden="true"></span>
        <div class="zan-header-center">
            <div class="zan-nav-item"><a href="index.html">首页</a></div>
            <div class="zan-nav-item"><a href="platform.html">平台</a></div>
            <div class="zan-nav-item"><a href="#">商城</a></div>
            <div class="zan-nav-item"><a href="#">运营</a></div>
        </div>
        <div class="zan-avatar-wrap">
            <div class="dropdown">
                <img class="zan-avatar" data-toggle="dropdown" src="static/images/avatar.jpg" alt="头像">
                <ul class="dropdown-menu dropdown-menu-right">
                    <li><a href="#">admin</a></li>
                    <li role="separator" class="divider"></li>
                    <li><a href="#">超级管理员</a></li>
                    <li role="separator" class="divider"></li>
                    <li><a href="#">通知 <span class="badge">10</span></a></li>
                    <li><a href="#">个人资料</a></li>
                    <li><a href="page_password.html">修改密码</a></li>
                    <li><a href="#">清空缓存</a></li>
                    <li role="separator" class="divider"></li>
                    <li><a href="page_login.html">退出登录</a></li>
                </ul>
            </div>
        </div>
    </header>
    <aside class="zan-aside">
        <div class="zan-brand">
            <a href="index.html">zan-admin后台管理系统</a>
        </div>
        <ul class="zan-sidebar">
            <li>
                <a href="index.html">
                    <span class="glyphicon glyphicon-home" aria-hidden="true"></span>后台首页
                </a>
            </li>
            <li>
                <a href="fonticon.html">
                    <span class="glyphicon glyphicon-text-size" aria-hidden="true"></span>字体图标
                </a>
            </li>
            <li class="haschildren open">
                <a href="#">
                    <span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>日期选择器
                </a>
                <ul class="zan-submenu">
                    <li><a href="plug_flatpickr.html">flatpickr</a></li>
                    <li><a href="plug_datetimepicker.html">datetimepicker</a></li>
                </ul>
            </li>
            <li class="haschildren">
                <a href="#">
                    <span class="glyphicon glyphicon-upload" aria-hidden="true"></span>文件上传
                </a>
                <ul class="zan-submenu">
                    <li><a href="plug_fileupload.html">fileupload</a></li>
                    <li><a href="plug_webuploader.html">webuploader</a></li>
                </ul>
            </li>
            <li class="haschildren">
                <a href="#">
                    <span class="glyphicon glyphicon-stats" aria-hidden="true"></span>图表插件
                </a>
                <ul class="zan-submenu">
                    <li><a href="plug_chart.html">chart</a></li>
                    <li><a href="plug_echarts.html">echarts</a></li>
                </ul>
            </li>

            <li class="haschildren">
                <a href="#">
                    <span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>富文本
                </a>
                <ul class="zan-submenu">
                    <li><a href="plug_tinymce.html">tinymce</a></li>
                    <li><a href="plug_editor.md.html">editor.md</a></li>
                    <li><a href="plug_ueditor.md.html">ueditor</a></li>
                </ul>
            </li>
            <li class="haschildren">
                <a href="#">
                    <span class="glyphicon glyphicon-saved" aria-hidden="true"></span>表单验证
                </a>
                <ul class="zan-submenu">
                    <li><a href="plug_formvalidation.html">formvalidation</a></li>
                    <li><a href="plug_jquery.validation.html">jquery.validation</a></li>
                </ul>
            </li>
            <li class="haschildren">
                <a href="#">
                    <span class="glyphicon glyphicon-briefcase" aria-hidden="true"></span>其它插件
                </a>
                <ul class="zan-submenu">
                    <li><a href="plug_sweetalert.html">sweetalert</a></li>
                    <li><a href="plug_notify.html">notify</a></li>
                    <li><a href="plug_timeline.html">timeline</a></li>
                    <li><a href="plug_clipboard.html">clipboard</a></li>
                    <li><a href="plug_croppie.html">croppie</a></li>
                    <li><a href="plug_lightbox.html">lightbox</a></li>
                    <li><a href="plug_touchslider.html">touchslider</a></li>
                    <li><a href="plug_rocket.html">rocket</a></li>
                </ul>
            </li>
            <li class="haschildren">
                <a href="#">
                    <span class="glyphicon glyphicon-file" aria-hidden="true"></span>示例页面
                </a>
                <ul class="zan-submenu">
                    <li><a href="page_login.html" target="_blank">登录页面</a></li>
                    <li><a href="page_curd.html">CURD页面</a></li>
                    <li><a href="page_password.html">修改密码</a></li>
                    <li><a href="page_error.html" target="_blank">错误页面</a></li>
                </ul>
            </li>
        </ul>
    </aside>
    <!-- 面包屑导航 -->
    <div class="zan-breadcrumb">
        <ol class="breadcrumb">
            <li><a href="#">Home</a></li>
            <li><a href="#">Library</a></li>
            <li class="active">Data</li>
        </ol>
    </div>

    <main class="zan-main">
        <div class="container-fluid">
            <blockquote>
                <p>更多详细内容可查阅官网</p>
                <p>官方网站:
                    <a href="https://github.com/smalot/bootstrap-datetimepicker">bootstrap-datetimepicker</a>
                </p>
                <footer>zan-admin</footer>
            </blockquote>
            <div class="panel panel-default zan-panel-default">
                <div class="panel-heading">单选年</div>
                <div class="panel-body">
                    <input type="text" class="form-control demo-1" />
                </div>
            </div>
            <div class="panel panel-default zan-panel-default">
                <div class="panel-heading">单选年月</div>
                <div class="panel-body">
                    <input type="text" class="form-control demo-2" />
                </div>
            </div>
            <div class="panel panel-default zan-panel-default">
                <div class="panel-heading">单选年月日</div>
                <div class="panel-body">
                    <input type="text" class="form-control demo-3" />
                </div>
            </div>

            <div class="panel panel-default zan-panel-default">
                <div class="panel-heading">单选年月日时分</div>
                <div class="panel-body">
                    <input type="text" class="form-control demo-4" />
                </div>
            </div>

            <div class="panel panel-default zan-panel-default">
                <div class="panel-heading">时刻选择</div>
                <div class="panel-body">
                    <input type="text" class="form-control demo-5" />
                </div>
            </div>

            <div class="panel panel-default zan-panel-default">
                <div class="panel-heading">双选年月日时分</div>
                <div class="panel-body">
                    <div class="input-group">
                        <input type="text" class="form-control demo-6-starttime" placeholder="出发时间">
                        <span class="input-group-addon">
                            <span class="glyphicon glyphicon-resize-horizontal" aria-hidden="true"></span>
                        </span>
                        <input type="text" class="form-control demo-6-endtime" placeholder="回程时间">
                    </div>
                </div>
            </div>
        </div>
    </main>

    <script src="static/js/jquery.min.js"></script>
    <script src="static/js/bootstrap.min.js"></script>
    <script src="static/js/zan-admin.min.js"></script>
    <!-- 插件依赖 -->
    <script src="lib/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
    <script src="lib/bootstrap-datetimepicker/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <script>
        $(".demo-1").datetimepicker({
            //语言配置
            language: "zh-CN",
            //时间格式化
            format: "yyyy",
            //选择完自动关闭
            autoclose: true,
            //出现今天按钮
            todayBtn: true,
            //今天高亮
            todayHighlight: true,
            startView: 4,
            minView: 4
        });

        $(".demo-2").datetimepicker({
            //语言配置
            language: "zh-CN",
            //时间格式化
            format: "yyyy-mm",
            //选择完自动关闭
            autoclose: true,
            //出现今天按钮
            todayBtn: true,
            //今天高亮
            todayHighlight: true,
            startView: 4,
            minView: 3,
        });

        $(".demo-3").datetimepicker({
            //语言配置
            language: "zh-CN",
            //时间格式化
            format: "yyyy-mm-dd",
            //选择完自动关闭
            autoclose: true,
            //出现今天按钮
            todayBtn: true,
            //今天高亮
            todayHighlight: true,
            startView: 2,
            minView: 2
        });

        $(".demo-4").datetimepicker({
            //语言配置
            language: "zh-CN",
            //时间格式化
            format: "yyyy-mm-dd hh:ii",
            // format: "yyyy-mm-dd hh:ii:ss",
            //选择完自动关闭
            autoclose: true,
            //出现今天按钮
            todayBtn: true,
            //今天高亮
            todayHighlight: true,
            startView: 2,
            minView: 0,
        });

        $(".demo-5").datetimepicker({
            //语言配置
            language: "zh-CN",
            //时间格式化
            format: "hh:ii",
            //选择完自动关闭
            autoclose: true,
            //出现今天按钮
            todayBtn: true,
            //今天高亮
            todayHighlight: true,
            startView: 1,
            minView: 0
        });

    </script>

    <!-- 双选 -->
    <script>
        var startime = $(".demo-6-starttime").datetimepicker({
            //语言配置
            language: "zh-CN",
            //时间格式化
            format: "yyyy-mm-dd hh:ii",
            //选择完自动关闭
            autoclose: true,
            //出现今天按钮
            todayBtn: true,
            //今天高亮
            todayHighlight: true,
            startView: 2,
            minView: 0,
        });
        var endtime = $(".demo-6-endtime").datetimepicker({
            //语言配置
            language: "zh-CN",
            //时间格式化
            format: "yyyy-mm-dd hh:ii",
            //选择完自动关闭
            autoclose: true,
            //出现今天按钮
            todayBtn: true,
            //今天高亮
            todayHighlight: true,
            startView: 2,
            minView: 0,

        });
        //监听事件
        startime.on('changeDate', function (ev) { endtime.datetimepicker('setStartDate', ev.date); });
        endtime.on('changeDate', function (ev) { startime.datetimepicker('setEndDate', ev.date); });
    </script>
</body>

</html>